package com.lenovo.dll.nebula.vod.parse;

import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

public class PlayUrlHandler extends DefaultHandler{
	
	String playUrl;
	
	public String getPlayUrl() {
		return playUrl;
	}

	public void setPlayUrl(String playUrl) {
		this.playUrl = playUrl;
	}

	@Override
	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException{

	}
		
	@Override
	public void endElement(String uri, String localName, String qName) throws SAXException{
		
	}
		
	@Override
	public void characters(char[] ch, int start, int length) throws SAXException{	
		
		//System.out.println(length+" "+new String(ch,start,length));		
		if(length<=36){
			return;
		}		
		playUrl=new String(ch, start, length);		
	}
	
}


